/*
 * @Author: ZhaoZhiqi
 * @Date: 2024-09-02 20:10:06
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2024-10-25 15:55:40
 * @Description:
 * @FilePath: \charging-admin\src\api\charge\station.js
 */
import request from "@/utils/request";

// 设备管理 查询列表
export function getListAPI(query) {
  return request({
    url: "/charge/station/list",
    method: "get",
    params: query,
  });
}

// 设备管理 新增修改
export function addOrUpdateAPI(data) {
  return request({
    url: "/charge/station/insert",
    method: "post",
    data: data,
  });
}

// 设备管理 删除
export function deleteAPI(data) {
  return request({
    url: "/charge/station/delete",
    method: "post",
    data: data,
  });
}

// 远程参数下发
export function updateTcpConfigAPI(data) {
  return request({
    url: "/charge/station/config",
    method: "post",
    data: data,
  });
}
